#ifndef __WINDOW__HELPER__
#define __WINDOW__HELPER__

#include "windows.h"
#include "LearnDef.h"

namespace Learn
{
    namespace Details
    {
        class WindowHelper
        {
        public:
            WindowHelper(HINSTANCE instance);
            ATOM RegisterWindowClass( WNDPROC proc);
            HWND CreateWindowClass(const TCHAR* name, int nShowCmd, DWORD style = WS_OVERLAPPEDWINDOW);
            int EnterMainLoop();

        private:
            void SetWndClass(HINSTANCE hInstance, WNDPROC proc);

            const TCHAR*    _szAppName = TEXT("HelloWindow");
            HWND            _hwnd;
            MSG             _msg;
            WNDCLASS        _wndclass;
            HINSTANCE       _hinstance;
        };
    }
}

#endif //__WINDOW__HELPER__
